package com.ctshk.common.utils.anno;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
 * @Description 字典處理
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/4/12
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ColumnMapping {


    /**
     * Process field name
     * @return
     */
    String fieldId();

    /**
     * Mapping must obey format : {"0","item1","1","item2","2","item3"...} and number count must even
     * @return transfer format str
     */
    String[] mapping();
}
